package web

import (
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/hero"
	"iris_blog/controller/web"
)

func Tag(party iris.Party) {
	tag := party.Party("/tag")
	serve := web.Tag{}
	tag.Get("/", hero.Handler(serve.GetAll))
	tag.Get("/getTagArticle", hero.Handler(serve.GetTagArticle))
}